package com.buaa.aimall.userModule.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum PayOrderStatusEnum {
    ORDER_GENERATION("0", "ORDER_GENERATION"),  // 订单生成
    PAYMENT_IN_PROGRESS("1", "PAYMENT_IN_PROGRESS"),    // 支付中
    PAYMENT_SUCCESS("2", "PAYMENT_SUCCESS"),    // 支付成功
    PAYMENT_FAILED("3", "PAYMENT_FAILED"),  // 支付失败
    REVOKED("4", "REVOKED"),    // 已撤销
    REFUND_RECEIVED("5", "REFUND_RECEIVED"),    // 已退款
    ORDER_CLOSURE("6", "ORDER_CLOSURE");    // 订单关闭

    @EnumValue
    public final String code;

    @JsonValue
    public final String name;
}
